<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <title>我的账户</title>
    <div data-th-replace="layout/head"></div>
    <!--初始公共加载过渡动画-->
    <script type="text/javascript" th:src='@{{path}/front/mobile/libs/page-loading.min.js?v={v}(path=${staticPath}, v=${v})}' charset="utf-8"></script>
</head>
<body>
    <header class="bar bar-nav u-myAccount-header-bg">
        <a class="button button-link button-nav pull-left goBack"  onclick="goBack();">
            <span class="iconfont icon-fanhui"></span>
        </a>
        <a th:href="@{/mobile/uc/cash/findUserCashRecordList}" class="button button-link button-nav pull-right">
            <i class="icon iconfont icon-zhifu vam" style="font-size: .7rem;margin-right: .1rem;"></i>
            <span class="fs4 c-fff vam"> 提现记录</span>
        </a>
        <h1 class='title'>我的账户</h1>
    </header>
    <div class="content wm-content order-content of" style="background-color: #F4F5F9">
        <div class="u-account-head__wrap u-myAccount-header__wrap">
            <div class="u-myAccount-header-content">
                <section class="row">
                    <aside class="col-75">
                        <section class="row">
                            <section class="col-50">
                                <section>
                                    <span class="fs4 c-888">账户总额(元)</span>
                                </section>
                                <section>
                                    <strong class="fs7 c-000" th:text="${userAccount['balance']}">0.00</strong>
                                </section>
                            </section>
                            <section class="col-50">
                                <section>
                                    <span class="fs4 c-888">冻结金额(元)</span>
                                </section>
                                <section>
                                    <strong class="fs7 c-ccc" th:text="${userAccount['cashForzenAmount']} + ${userAccount['vmForzenAmount']}">0</strong>
                                </section>
                            </section>
                        </section>
                    </aside>
                    <aside class="col-25">
                        <section class="pt5 text-right">
                            <a onclick="goCharge();" class="button button-fill button-round button-danger watch-live">充值</a>
                        </section>
                    </aside>
                </section>
                <section class="row pt5">
                    <aside class="col-75">
                        <section class="row">
                            <section class="col-50">
                                <section id="prompt">
                                    <span class="fs4 c-888">可提现(元)</span>
                                    <i class="icon iconfont icon-jubao fs4 c-888"></i>
                                </section>
                                <section>
                                    <strong class="fs7 c-000" th:text="${userAccount['cashAmount']}">0</strong>
                                </section>
                            </section>
                            <section class="col-50">
                                <section>
                                    <span class="fs4 c-888">已申请提现(元)</span>
                                </section>
                                <section>
                                    <strong class="fs7 c-ccc" th:text="${userAccount['applyCashAmount']}">0</strong>
                                </section>
                            </section>
                        </section>
                    </aside>
                    <aside class="col-25">
                        <section class="pt5 text-right">
                            <a th:if="${userAccount['cashAmount']} >=1" th:href="@{/mobile/uc/cash/toWithdrawing}" class="button button-fill button-round button-danger watch-live purple-button">提现</a>
                            <a th:if="${userAccount['cashAmount']} < 1" href="javascript:void(0);" class="button button-fill button-round button-danger watch-live purple-button disabled">提现</a>
                        </section>
                    </aside>
                </section>
            </div>
        </div>
        <article class="page-infinite__wrap u-myAccount-infinite__wrap">
            <div class="page-group">
                <div id="page-infinite-scroll-bottom" class="page page-current">
                    <div class="content infinite-scroll native-scroll record_wrap" data-type='native' data-distance="100">
                        <div class="card u-myAccount-infinite-card">
                            <div class="card-header">
                                <span class="fs7">账户变动记录</span>
                                <aside>
                                    <span data-order="1" class="record-order"><span class="c-888 fs6 vam">类型</span> <i class="icon icon-caret fs4 c-ccc vam"></i></span>
                                    <span data-order="3" class="record-order ml5"><span class="c-888 fs6 vam">时间</span> <i class="icon icon-caret fs4 c-ccc vam"></i></span>
                                    <input id="order" type="hidden" value="0"/>
                                </aside>
                            </div>
                            <div class="card-content wm-loadingEle-box">
                                <div class="card-content-inner">
                                    <div class="list-block">
                                        <div class="pl75" id="account-list-box">
                                           <!-- 账户变动记录 -->
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </article>
    </div>
    <div data-th-replace="layout/footer"></div>
    <script type="text/javascript" th:src="@{{path}/front/mobile/business/user/center/account/account.js?v={v}(path=${staticPath},v=${v})}"></script>
</body>
</html>
